package com.future.vo;

/**
 * 重新封装返回响应对象
 * 统一格式
 * 通用的返回值类（带有数据）
 * @author zlb
 * @date 2022/4/20 11:33
 * @param <T> 返回类型
 */
public class Result<T> {
    public T data;

    public String code;

    public String message;

    public boolean success;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }
}
